<?php

namespace Application\View\Helper;

use Zend\View\Helper\AbstractHelper;

class FooterHelper extends AbstractHelper {
	public function __invoke() {
	$navHtml = <<<EOQ
		<div ng-module="footerModule">
			<div id="footer" ng-controller="FooterNewsletterController as footer">
            <div class="row" style="margin-right: 0px; margin-left: 0px;">
                <div class="col-lg-12" style="padding-right: 0px; padding-left: 0px;">
                    
                    <div class="footer-main">
                        <div class="container">
                            <div id="first-row" class="row">
                                <div class="col-lg-12">
                                    <p>
                                        <a href="/">
                                            <img alt="1001treks" title="retour à la page de recherche" src="/img/small_1001treks-logo-com.png">
                                        </a>
                                    </p>

                                    <div id="footer-desc">
                                        1001Treks.com propose un moteur de recherche performant qui vous aide à trouver la randonnée qui vous convient le mieux pour la destination de votre choix.
                                    </div>

                                </div>
                            </div>
                            
                            <div id="footer-row-second" class="row row-parts">

                                <div id="first-col" class="footer-col col-md-6">
                                    <h2>Destinations</h2>

                                    <div class="row">

                                        <div ng-repeat="(key, data) in footer.paysregions" class="col-md-4">
                                            <a class="dot" attr="href" retireraccents="/r?tags={{data.libellePays}}">{{data.libellePays}}</a>
                                            
                                            <div ng-show="data.nombreRegionsAssocie > 0" ng-repeat="(key2, region) in data.listeRegions">
                                                <a class="dash" attr="href" retireraccents="/r?tags={{region.libelleRegions}}">
                                                    {{region.libelleRegions}}
                                                </a>
                                            </div>
                                        </div>

                                    </div>    

                                </div>


                                <div id="second-col" class="footer-col col-md-6">
                                    <div class="col-content">
                                        <h2>Activités</h2>

                                        <div class="row" >
                                        
                                            <div ng-repeat="(key, activite) in footer.activites" class="col-md-4">
                                                <a class="dot" attr="href" retireraccents="/r?tags={{activite.libelleAS}}">{{activite.libelleAS}}</a>
                                            </div>

                                        </div>  
                                    </div>
                                </div>

                                <!--<div id="third-col" class="footer-col col-md-4">
                                    <div class="col-content">
                                        <h2>Agences référencées</h2>

                                        <div class="row" >
                                        
                                            <div ng-repeat="(key, agence) in footer.agences" class="col-md-6">
                                                <a class="dot" href="/r?tags={{agence.libelle}}">{{agence.libelle}}</a>
                                            </div>

                                        </div>
                                    </div>
                                </div>-->
                            </div>

                            <!--<div id="footer-row-trois" class="row row-parts">

                                <div id="first-col" class="footer-col col-md-3 col-md-offset-1">
                                    <h2>1001 Treks</h2>

                                    <div class="row-cell">
                                        59 bis,<br>
                                        Avenue Maryse Bastié,<br>
                                        33520 BRUGES,<br>
                                        France
                                    </div>
                                </div>

                                <div id="second-col" class="footer-col col-md-4">
                                    <div>
                                        <h2>Mes alertes</h2>

                                        <div class="row-cell">
                                            <input type="email" input-enter="open()" ng-blur="setBlur()" ng-focus="setFocus()" placeholder="{{contact.placeholder}}" ng-model="contact.email">
                                        </div>
                                    </div>
                                </div>

                                <div id="third-col" class="footer-col col-md-3 col-md-offset+1">
                                    <div id="contact-footer">
                                        <h2>Nous contacter</h2>

                                        <div class="row-cell">
                                            <span>M</span>
                                            : 06.21.21.21.21
                                            <br>
                                            06.23.23.23.23
                                            <br>
                                            <span>F</span>
                                            : 01.12.12.12.12
                                            <br>
                                            <span>E</span>
                                            :
                                            <a href="mailto:nico.sesma@gmail.com">nico.sesma@gmail.com</a>
                                        </div>
                                    </div>
                                </div>
                            </div>-->

                        </div>
                    </div>

                    <div class="footer-copyright">
                        <div class="container">
                            <div id="first-row" class="row">
                                <div class="col-lg-12">
                                    <span>All Rights Reserved © 2014 1001Treks.com</span> | 
                                    <span><a title="Accès au plan du site" href="/plan-du-site">plan du site</a></span> | 
                                    <span><a title="Qui sommes nous ?" href="/qui-sommes-nous">qui sommes-nous ?</a></span> | 
                                    <span><a title="Contactez nous" href="/nous-contacter#nc">nous contacter</a></span> | 
                                    <span><a title="Accès aux mentions légales" href="/mentions-legales">mentions légales</a></span>
                                </div>
                                <div id="reseau-sociaux" class="col-lg-12">
                                    <a id="fb" target="_blank" title="Facebook" href="https://www.facebook.com/1001treks?ref=hl">
                                        <i class="fa fa-facebook-square"></i>
                                    </a>

                                    <a id="gp" target="_blank" title="Google +" href="https://plus.google.com/u/0/b/111784008768241953743/111784008768241953743/about" >
                                        <i class="fa fa-google-plus"></i>
                                    </a>

                                    <a id="tw" target="_blank" title="Twitter" href="https://twitter.com/1001Treks">
                                        <i class="fa fa-twitter"></i>
                                    </a>
                                </div>
                            </div>

                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
EOQ;
		//<span><a title="Accès aux mentions légales" href="/plan-du-site">plan du site</a></span> | 
		return $navHtml;
	}
}
